#include "bits/stdc++.h"
using namespace std;
int main(){
    char ch;
    cin >> ch;
    int i, j, k,s=3;
    for (i = 1; i <=3;i++,s--){
        for (j =1; j <s;j++)
            cout << " ";
        for (k = 1; k <=2*i-1;k++){
            cout << ch;
        }
        cout << "\n";
    }
}